#define _CRT_SECURE_NO_WARNINGS
#include"set.h"
int main() {
	/*unordered_map<int,int,GN<int>>  a;
	a.insert(pair<int,int>(1, 1));
	a.insert(pair<int, int>(11, 11));
	a.insert(pair<int, int>(2, 2));
	a.insert(pair<int, int>(3, 3));
	a.insert(pair<int, int>(12, 12));
	a.insert(pair<int, int>(4, 4));
	unordered_map<int,int, GN<int>>::iterator  b = a.begin();
	
	while (b != a.end()) {
		
		cout << b._pNode->_data.first << endl;
		b++;
	}*/
	unordered_set<int, int, GN<int>>  a;
	a.insert(1);
	a.insert(2);
	a.insert(3);
	a.insert(4);
	a.insert(11);
	a.insert(13);
	unordered_set<int, int, GN<int>>::iterator  b = a.begin();
	while (b != a.end()) {
		if (b._pNode->_data==4) {
			b._pHt->Erase(b);
			continue;
		}
		cout << b._pNode->_data << endl;
		b++;
	}
	return 0;
}